package com.euc.springbootframework.job;

import com.euc.springbootframework.entity.Baike;
import com.euc.springbootframework.service.BaikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by WUNE on 5/6/2018.
 */
@Component
public class TestJob {

    @Autowired
    BaikeService baikeService;

//    @Scheduled(fixedRate = 3000)
//    public void getText(){
//        List<Baike> lists = baikeService.findAll();
//        System.out.println("test job");
//        System.out.println(lists);
//    }
}
